package com.agstar.demo;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.*;
import java.util.concurrent.locks.ReentrantLock;

public class AQSDemo {
    volatile Map<String, String> map = new HashMap<>();

    public static void main(String[] args) {
        ReentrantLock lock = new ReentrantLock();
        lock.lock();

        ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, 10,
                0L, TimeUnit.MILLISECONDS,
                new LinkedBlockingQueue<Runnable>());
        threadPoolExecutor.execute(()->{

        });
        Executors.newFixedThreadPool(1);
        Executors.newCachedThreadPool();
        threadPoolExecutor.allowCoreThreadTimeOut(true);
        threadPoolExecutor.setCorePoolSize(11);
        Runtime.getRuntime();
    }

}
